package org.rkuk.kasutil.media 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author rkuk
	 */
	internal class MediaStreamStatusEvent extends Event 
	{
		//MediaStreamProxy需要征听的NetStatusEvent.info.code
		public static const STATUS_PLAY:String = "NetStream.Buffer.Full";
		public static const STATUS_STOP:String = "NetStream.Play.Stop";
		public static const STATUS_PAUSE:String = "NetStream.Pause.Notify";
		public static const STATUS_BUFFER:String = "NetStream.Buffer.Empty";
		//public static const STATUS_COMPLETE:String = "NetStream.Play.Complete";
		public static const STATUS_FLUSH:String = "NetStream.Buffer.Flush";
		public static const STATUS_SEEK:String = "NetStream.Seek.Notify";
		
		public function MediaStreamStatusEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
		} 
		
		public override function clone():Event 
		{ 
			return new MediaStreamStatusEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("MediaStreamStatusEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}